import { MOUNTED, MOUNTING, NOT_MOUNTED } from "../applications/app.helper";

export function toMountPromise(app){
  if(app.status != NOT_MOUNTED) return app
  app.status = MOUNTING
  app.mount(app.customProps)
  app.status = MOUNTED
  return app
}